import time

m = 2048
n = 512
k = 1024

A = [[1 for _ in range(n)] for _ in range(m)]
B = [[1 for _ in range(k)] for _ in range(n)]
C = [[0 for _ in range(k)] for _ in range(m)]



begin = time.time()
for i in range(m):
    for j in range(k):
        for t in range(n):
            C[i][j] += (A[i][t] * B[t][j])

end = time.time()
print('Total time:', end - begin)
print(C[0][0])